
#include "Card.h"

Card::Card()
{

}

Card::Card(CardSpec::Value value, CardSpec::Color color)
{
    this->_value = value;
    this->_color = color;
}

Card::~Card()
{

}

CardSpec::TrueColor Card::getTrueColor() const
{
    if (this->_color == CardSpec::HEART || this->_color == CardSpec::DIAMOND)
        return CardSpec::RED;
    return CardSpec::BLACK;
}

void Card::setValue(CardSpec::Value value)
{
    this->_value = value;
}

CardSpec::Value Card::getValue() const
{
    return this->_value;
}

void Card::setColor(CardSpec::Color color)
{
    this->_color = color;
}

CardSpec::Color Card::getColor() const
{
    return this->_color;
}

